{extend name="layout/iframe" /}

{block name="pagecss"}
<link href="__STATIC__/plugins/layui-formSelects/formSelects-v4.css" rel="stylesheet" type="text/css" />
<style>
    .v {
	  display: -webkit-flex;
	  display: flex;
	  flex-direction: column;
	}
	
	.h {
	  display: -webkit-flex;
	  display: flex;
	  flex-direction: row;
	}
	.v_center {
	  display: -webkit-flex;
	  display: flex;
	  align-items: center; /*垂直居中*/
	}
	
	.h_center {
	  display: -webkit-flex;
	  display: flex;
	  justify-content: center;
	}
	
	.h_v_center {
	  display: -webkit-flex;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	}
	.between {
	  display: flex;
	  display: -webkit-flex;
	  justify-content: space-between;
	}
	.around {
	  display: flex;
	  display: -webkit-flex;
	  justify-content: space-around;
	}
	.text2{
		width: 175px;
	}
	.layui-form-checkbox[lay-skin=primary]{
		min-width: 140px;
	}
	.layui-form-checkbox[lay-skin=primary] span{
		padding-right: 0;
	}
	.modal-footer{
		padding: 20px;
	}
</style>
{/block}

{block name="content"}
<div class="layui-card-body layui-layout-admin" style="padding: 15px;">
    <form class="layui-form" action="" lay-filter="component-form-group">
        <div class="relative" style="padding: 30px 0 0 20px;border-bottom: solid 1px #eee;">
        	<div class="layui-form-item">
        		<input class="add" type="checkbox" name="region" value="辽宁省" lay-skin="primary" lay-filter="add_one" title="辽宁省">
			    <input class="add" type="checkbox" name="region" value="吉林省" lay-skin="primary" lay-filter="add_one" title="吉林省">
			    <input class="add" type="checkbox" name="region" value="黑龙江省" lay-skin="primary" lay-filter="add_one" title="黑龙江省">
        	</div>
        	<div class="layui-form-item">
        		<input class="add" type="checkbox" name="region" value="上海市" lay-skin="primary" lay-filter="add_one" title="上海市">
			    <input class="add" type="checkbox" name="region" value="江苏省" lay-skin="primary" lay-filter="add_one" title="江苏省">
			    <input class="add" type="checkbox" name="region" value="浙江省" lay-skin="primary" lay-filter="add_one" title="浙江省">
			    <input class="add" type="checkbox" name="region" value="安徽省" lay-skin="primary" lay-filter="add_one" title="安徽省">
			    <input class="add" type="checkbox" name="region" value="江西省" lay-skin="primary" lay-filter="add_one" title="江西省">
        	</div>
        	<div class="layui-form-item">
        		<input class="add" type="checkbox" name="region" value="河南省" lay-skin="primary" lay-filter="add_one" title="河南省">
			    <input class="add" type="checkbox" name="region" value="湖北省" lay-skin="primary" lay-filter="add_one" title="湖北省">
			    <input class="add" type="checkbox" name="region" value="湖南省" lay-skin="primary" lay-filter="add_one" title="湖南省">
        	</div>
        	<div class="layui-form-item">
        		<input class="add" type="checkbox" name="region" value="福建省" lay-skin="primary" lay-filter="add_one" title="福建省">
			    <input class="add" type="checkbox" name="region" value="广东省" lay-skin="primary" lay-filter="add_one" title="广东省">
			    <input class="add" type="checkbox" name="region" value="广西壮族自治区" lay-skin="primary" lay-filter="add_one" title="广西壮族自治区">
			    <input class="add" type="checkbox" name="region" value="海南省" lay-skin="primary" lay-filter="add_one" title="海南省">
			    <input class="add" type="checkbox" name="region" value="山东省" lay-skin="primary" lay-filter="add_one" title="山东省">
        	</div>
        	<div class="layui-form-item">
        		<input class="add" type="checkbox" name="region" value="北京市" lay-skin="primary" lay-filter="add_one" title="北京市">
			    <input class="add" type="checkbox" name="region" value="天津市" lay-skin="primary" lay-filter="add_one" title="天津市">
			    <input class="add" type="checkbox" name="region" value="河北省" lay-skin="primary" lay-filter="add_one" title="河北省">
			    <input class="add" type="checkbox" name="region" value="山西省" lay-skin="primary" lay-filter="add_one" title="山西省">
			    <input class="add" type="checkbox" name="region" value="内蒙古自治区" lay-skin="primary" lay-filter="add_one" title="内蒙古自治区">
        	</div>
        	<div class="layui-form-item">
        		<input class="add" type="checkbox" name="region" value="陕西省" lay-skin="primary" lay-filter="add_one" title="陕西省">
			    <input class="add" type="checkbox" name="region" value="甘肃省" lay-skin="primary" lay-filter="add_one" title="甘肃省">
			    <input class="add" type="checkbox" name="region" value="青海省" lay-skin="primary" lay-filter="add_one" title="青海省">
			    <input class="add" type="checkbox" name="region" value="宁夏回族自治区" lay-skin="primary" lay-filter="add_one" title="宁夏回族自治区">
			    <input class="add" type="checkbox" name="region" value="新疆维吾尔自治区" lay-skin="primary" lay-filter="add_one" title="新疆维吾尔自治区">
        	</div>
        	<div class="layui-form-item">
        		<input class="add" type="checkbox" name="region" value="重庆市" lay-skin="primary" lay-filter="add_one" title="重庆市">
			    <input class="add" type="checkbox" name="region" value="四川省" lay-skin="primary" lay-filter="add_one" title="四川省">
			    <input class="add" type="checkbox" name="region" value="贵州省" lay-skin="primary" lay-filter="add_one" title="贵州省">
			    <input class="add" type="checkbox" name="region" value="云南省" lay-skin="primary" lay-filter="add_one" title="云南省">
			    <input class="add" type="checkbox" name="region" value="西藏自治区" lay-skin="primary" lay-filter="add_one" title="西藏自治区">
        	</div>
        	<div class="layui-form-item">
        		<input class="add" type="checkbox" name="region" value="台湾省" lay-skin="primary" lay-filter="add_one" title="台湾省">
			    <input class="add" type="checkbox" name="region" value="香港特别行政区" lay-skin="primary" lay-filter="add_one" title="香港特别行政区">
			    <input class="add" type="checkbox" name="region" value="澳门特别行政区" lay-skin="primary" lay-filter="add_one" title="澳门特别行政区">
        	</div>

	    </div>
	    <div class="modal-footer h between v_center">
	    <div>
			<span style="color: #c2c2c2;">不可选择的区域表示已经被其它模板选择了</span>
		</div>
	    	<div class="h v_center">
				<button type="button" class="layui-btn layui-btn-primary close-btn">取消</button>
				<button type="button" class="layui-btn" lay-submit="" lay-filter="select_save">确定 <i class="layui-icon">&#xe609;</i></button>
	    	</div>
	    </div>
    </form>
</div>

<input type="hidden" class="save_url" value="{:url('admin/'.strtolower($model).'/savepost')}">
{/block}

{block name="pagescript"}
<script src="__STATIC__/admin/js/qiniu/plupload.full.min.js" type="text/javascript"></script>
<script src="__STATIC__/admin/js/qiniu/qiniu.js" type="text/javascript"></script>
<script src="__STATIC__/admin/js/qiniu/qiniuConfig.js" type="text/javascript"></script>

<script src="__STATIC__/admin/pages/js/uploadfile.js" type="text/javascript"></script>
<script src="__STATIC__/admin/pages/js/freighttemplate.js" type="text/javascript"></script>
{/block}